
// 执行js脚本
export const performScriptForFunction = (script: any) => {
  // eval(script) //重复执行 vue 
  new Function(script).call(window, window)
}
// 执行js脚本
// export const performScriptForFunction = (script, appName, global) => {
//   window.proxy = global
//   const scriptText = `
//     return ((window) => {
//       ${script}
//       return window['${appName}']
//     })(window.proxy)
//   `
//   return new Function(scriptText)()
// }

export const performScriptForEval = (script: any) => {
  eval(script)// app module mount
}
